< previous page page_481 next page >

Page 481
Type.gifListing 12.18. Adding the CloseFlag property.
Public Property Get CloseFlag() As Variant
    '
    CloseFlag = blnCloseFlag
    '
End Property

Public Property Let CloseFlag(ByVal vNewValue As Variant)
    '
    blnCloseFlag = vNewValue
    '
End Property
Next, add the SelectedValue property and enter the code from Listing 12.19.
Type.gifListing 12.19. Adding the SelectedValue property.
Public Property Get SelectedValue() As Variant
    '
    SelectedValue = varSelectValue
    '
End Property

Public Property Let SelectedValue(ByVal vNewValue As Variant)
    '
    varSelectValue = vNewValue
    '
End Property
These properties are used to pass information from the completed form back to the control button you built earlier in the project. Save the form and project before continuing.
Now add the code from Listing 12.20 to the Form_Load event. This code refreshes the dialog at startup.
Type.gifListing 12.20. Coding the Form_Load event.
Private Sub Form_Load()
    '
    Me.Caption = "Select a Record"
    Data1.Refresh
    DBList1.Refresh
    '
End Sub

 
< previous page page_481 next page >

If you like this book, buy it!